<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="cn.edu.nju.ws.sview.Config,java.util.Enumeration" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SView Preferences Setting</title>
<link rel="icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="/sview/css/bootstrap_button.min.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/lang_set.css" />
<script type="text/javascript" src="/sview/script/jquery.js"></script>
<script type="text/javascript" src="/sview/script/global.js"></script>
<script type="text/javascript" src="/sview/script/langPreference.js"></script>
</head>
<body>
<%
	String lang = request.getParameter("lang");
	if(lang!=null &&lang.equals("zh")){
		request.getRequestDispatcher("langPreference_zh.jsp").forward(request,response);
		return;
	}
	String from = request.getParameter("f");
%>
<div class="header_bar" >
  <div class="bar-container">
    <div class="nav">
     <ol>
     <li><span class="lc"><a href='/sview/views/index.jsp'>Entity</a></span></li>
     <li><span class="lc"><a href='/sview/relations/index.jsp'>Dataset</a></span></li>
     </ol>
    </div>
    <div class="setting">
     <ol>
     <li><span class="lc"><span class="uinfo">
     <% 
       String user = (String)session.getAttribute("user"); 
       if(user==null){
     %>
         <a  onClick="login()">Sign in</a>
     <%
       }else{
     %>
         <%=user %>
     <%} %>
     </span></span></li>
     <li><span class="usplitBox"><span class="usplit"></span></span></li>
     <li><span class="lc"><a id="set-option" href="javascript:void(0)"><span class="set_options"></span></a></span></li>
     </ol>
    </div>
  </div>
  <div class="dmenu" id="dmenu">
    <ol>
     <li><a href="/sview/preference">Language setting</a></li>
    </ol>
  </div>
</div>
<div class="container">
   <div class="top">
      <div class="mspacing"></div>
     <div class="operation">Language Settings</div>
     <div class="mspacing"></div>
   </div>
   <div class="mspacingLittle"></div>
   <div class="main">
	<div class="leftPanel">
	 <ol class='leftnav'>
        <li><a class="nav-item d" href="javascript:void(0)	" onclick="return false">Display Language</a></li>
     </ol>
	</div>
	<div class="rightPanel">
	  <div class="lang-display-set">
	     <div class="hint">Which language should SView use for SView content?</div>
	     <div> 
        	<span><input type="radio" value="en" name="display-langs" />English</span>
        	<span><input type="radio" value="zh" name="display-langs"/>Chinese (Simplified)</span>
         </div>
         <div class="mspacingLittle dis"></div>
	     <div class="form-button">
	       <div id ="displayLangbuttons" class="formbuttons">
	        <input type="button" value="Save" class="sbutton btn btn-primary fb">
	        <input type="button" value="Cancel" class="cbutton btn fb">
	       </div>
	     </div>
	  </div>
	</div>
	</div>
</div>
<input type="hidden" id="display-lang" name="display-lang" value="en"/>
<%if(from!=null){ %>
  <input type="hidden" id="f"  value=<%=from%> /> 
<%} %>
<jsp:include page="/vfooter.jsp"></jsp:include>
</body>
</html>